package com.lm.atomikos.mapper.storage;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StorageMapper {
    @Update("UPDATE t_storage SET count = count - #{count} WHERE product_id = #{productId}")
    void decrease(@Param("productId") String productId, @Param("count") int count);
}

